package com.zbkj.common.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单发票
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_order_electronic_invoice")
@ApiModel(value = "订单发票", description = "订单发票")
public class OrderElectronicInvoice implements Serializable {
    private static final long serialVersionUID = -8815758853701038084L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "用户id")
    private String uid;
    @ApiModelProperty(value = "开票单号")
    private String number;

    @ApiModelProperty(value = "开票类型 默认0首开 1合开 2换开")
    private Integer openMergeInvoiceType;

    @ApiModelProperty(value = "是否是合开发票 0 否 1是")
    private Integer isOpenMergeInvoiceType;
    @ApiModelProperty(value = "发票类型:1-普通发票(电子),2-专用发票")
    private Integer invoiceType;
    @ApiModelProperty(value = "抬头类型:1-个人或事业单位,2-企业'")
    private Integer titleType;
    @ApiModelProperty(value = "发票抬头")
    private String invoiceTitle;
    @ApiModelProperty(value = "纳税人识别号/税号")
    private String taxNumber;
    @ApiModelProperty(value = "开户银行")
    private String bankName;
    @ApiModelProperty(value = "银行账号")
    private String bankAccount;
    @ApiModelProperty(value = "企业地址")
    private String companyAddress;
    @ApiModelProperty(value = "企业电话")
    private String companyPhone;
    @ApiModelProperty(value = "发票内容")
    private String contentText;
    @ApiModelProperty(value = "发票金额")
    private BigDecimal invoiceAmount;
    @ApiModelProperty(value = "电子发票PDF地址")
    private String invoicePdfUrl;
    @ApiModelProperty(value = "审核状态 0待审核 1已审核 2已拒绝")
    private Integer isCheck;
    @ApiModelProperty(value = "备注")
    private Integer remarks;
    @ApiModelProperty(value = "说明")
    private Integer text;
    @ApiModelProperty(value = "0 正常 1已作废")
    private Integer status;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
}
